package com.hospitalsystem.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * (Patient)实体类
 *
 * @author makejava
 * @since 2024-12-28 19:32:59
 */
public class Patient implements Serializable {
    private static final long serialVersionUID = 333859402660616979L;
    
    private String pId;
    
    private String password;
    
    private String phone;
    
    private String gender;
    
    private String name;
    
    private String idCard;
    
    private String birthday;


    public String getPId() {
        return pId;
    }

    public void setPId(String pId) {
        this.pId = pId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public Map<String,Object> converToMap(){
        Map<String,Object> map = new HashMap<>();
        map.put("pid",pId);
        map.put("name",name);
        map.put("gender",gender);
        return map;
    }
}

